package org.blueoxygen.kukuruyuk.actions.location;
import java.lang.reflect.InvocationTargetException;
import java.sql.Timestamp;
import org.apache.commons.beanutils.PropertyUtils;
import org.blueoxygen.cimande.gx.entity.GxDroplistValue;
import org.blueoxygen.kukuruyuk.entity.Plasma;
import org.blueoxygen.kukuruyuk.entity.Location;
import org.blueoxygen.cimande.LogInformation;

public class ChangeStatus extends LocationForm{
		
		private String locationId;
		private String dropValue;
		private String codeDefault;
		
		public String execute(){
			if(getLocation().getId() != null && !"".equalsIgnoreCase(getLocation().getId())){
				setLocation((Location) manager.getById(Location.class, getLocation().getId()));
			}
			getLocation().getLogInformation().setActiveFlag(9);
			
				 manager.save(getLocation());
			 return SUCCESS;
		}
		
		public String getDropValue() {
			return dropValue;
		}
		public void setDropValue(String dropValue) {
			this.dropValue = dropValue;
		}

		public String getLocationId() {
			return locationId;
		}

		public void setLocationId(String locationId) {
			this.locationId = locationId;
		}

		public String getCodeDefault() {
			return codeDefault;
		}

		public void setCodeDefault(String codeDefault) {
			this.codeDefault = codeDefault;
		}

}
		